<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="common.jsp"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<title>队列</title>
<script>
    var triage_id = "<%=request.getParameter("triage_id")%>";
    var time = "<%=request.getParameter("time")%>";
</script>
<script src="${ctx}/jiaohao/jquery.json-2.2.js"></script>

<!--laytpl  -->
<script type="text/javascript" src="${ctx}/lib/laytpl/laytpl/laytpl.js"></script>
<script type="text/javascript" src="${ctx}/lib/laytpl/laytpl/template.js"></script>
<script src="./成都中医大银海眼科医院/wx_public.js"></script>
<body>
<div class="header">
      <div class="topcenter">
      </div>
      <div class="topright">
        <span></span>
      </div>
    </div>
    <!--顶部的结束-->
     <div class="formbody">
        <div class="maininfo">
          <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100%">
                 <table class="imgtable">
                    <tr>
                        <th class="td2">诊室</th>
                        <th class="td3">科室</th>
                        <th class="td4">医生</th>
                        <th class="td5">正在就诊</th>
                        <th class="td6">等待就诊</th>
                    </tr>
                </table>
              </td>
            </tr>
            <tr>
              <td width="100%">
                <div id="A1">
                     <div id="A2">
                        <table class="imgtable">
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                             <tr>
                                <td class="td2 trline01">诊室</td>
                                <td class="td3 trline01">科室</td>
                                <td class="td4 trline01">医生</td>
                                <td class="td5 trline01">正在就诊</td>
                                <td class="td6 trline01 td_line">等待就诊</td>
                            </tr>
                             <tr><td colspan="5" height="10px" class="td_line"></td></tr>
                       </table>
                    </div>
                </div>
              </td>
            </tr>
          </table>
        </div>
      </div>
   <!--中间区域结束-->
   <div class="footer">
     请在候诊厅等待就诊，保持安静，不要走开，祝您早日康复。
   </div>
   <SCRIPT type="text/javascript">
    function _InitScroll(_S1, _S2, _H, _T) {
        return "var marqueesHeight" + _S1 + "=" + _H + ";var stopscroll" + _S1 + "=false;var scrollElem" + _S1 + "=document.getElementById('" + _S1 + "');with(scrollElem" + _S1 + "){style.height=marqueesHeight" + _S1 + ";style.overflow='hidden';noWrap=true;}scrollElem" + _S1 + ".onmouseover=new Function('stopscroll" + _S1 + "=true');scrollElem" + _S1 + ".onmouseout=new Function('stopscroll" + _S1 + "=false');var preTop" + _S1 + "=0; var currentTop" + _S1 + "=0; var stoptime" + _S1 + "=0;var leftElem" + _S2 + "=document.getElementById('" + _S2 + "');scrollElem" + _S1 + ".appendChild(leftElem" + _S2 + ".cloneNode(true));setTimeout('init_srolltext" + _S1 + "()'," + _T + ");function init_srolltext" + _S1 + "(){scrollElem" + _S1 + ".scrollTop=0;setInterval('scrollUp" + _S1 + "()',50);}function scrollUp" + _S1 + "(){if(stopscroll" + _S1 + "){return;}currentTop" + _S1 + "+=1;if(currentTop" + _S1 + "==(marqueesHeight" + _S1 + "+1)) {stoptime" + _S1 + "+=1;currentTop" + _S1 + "-=1;if(stoptime" + _S1 + "==" + _T / 50 + ") {currentTop" + _S1 + "=0;stoptime" + _S1 + "=0;}}else{preTop" + _S1 + "=scrollElem" + _S1 + ".scrollTop;scrollElem" + _S1 + ".scrollTop +=1;if(preTop" + _S1 + "==scrollElem" + _S1 + ".scrollTop){scrollElem" + _S1 + ".scrollTop=0;scrollElem" + _S1 + ".scrollTop +=1;}}}";
    }
    eval(_InitScroll("A1", "A2", 19*20, 3000));
</SCRIPT>
</body>

</html>
<script>
    $(function(){
        getHouzhenData();
        setInterval('getHouzhenData()',time=='null'?30000:time);
    })
</script>